import tkinter as tk
from tkinter import messagebox

class GUIController:
    def __init__(self):
        self.root = tk.Tk()
        self.root.title("Drone Detection Controller")
        tk.Label(self.root, text="按下 START 开始检测...").pack()
        self.start_button = tk.Button(self.root, text="START", command=self._on_start)
        self.start_button.pack(pady=10)
        self.started = False

    def _on_start(self):
        self.started = True
        self.root.destroy()

    def run(self):
        self.root.mainloop()
        return self.started